package com.test.demo;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.Instant;

@Component
public class Job {

    final static Logger logger = LogManager.getLogger();
    //@Scheduled(cron = "0/5 * * * * ?")
    public void test(){
        logger.info(Instant.now());
        logger.info(Instant.now());
        logger.error(Instant.now());
        logger.warn(Instant.now());
    }
}
